import logging
import logging.config
from config.VarConfig import parentDirPath
from os import path

#读取配置文件
import sys
sys.path.append("..")

log_config_path = parentDirPath + "\config\logging.conf"
# log_config_path =  "..\config\logging.conf"
logging.config.fileConfig(log_config_path)
logger = logging.getLogger("rotatingFileLogger")

def debug(message):
    logger.debug(message)

def info(message):
    logger.info(message)

def warning(message):
    logger.warning(message)

if __name__ == '__main__':
    # logger.debug("debug message")
    logger.info("info message规划")
    # logger.warning("warn message")
    # logger.error("error message")
    # logger.critical("critical message规划")


